//此模块获取品牌管理数据的模块
import request from '@/utils/request'
export const reqPagesData = (page,limit)=>{
    return request({
        method:'get',
        url:`/admin/product/baseTrademark/${page}/${limit}`,
    })
}
export const reqImgUrl = ()=>{
    return request({
        url:'/admin/product/fileUpload',
        method:'post'
    })
}
//增加品牌数据和修改品牌数据
export const reqUploadBrand = (data)=>{
    if(data.id){ 
        return request({
            url:'/admin/product/baseTrademark/update',
            method:'put',
            data
        })
    }else{
        data.id=0
        return request({
            method:'post',
            url:'/admin/product/baseTrademark/save',
            data
        })
    }
}
//删除某一条符合其id的数据
export const reqDelBrand = (id)=>{
    return request({
        url:`/admin/product/baseTrademark/remove/${id}`,
        method:'delete'
    })
}